import Vue from 'vue'

import ELEMENT from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/style/index.less'

import App from '@/App.vue'
import router from '@/router'
import store from '@/store'

import '@/permission' // 路由守卫

import GlobalComponentObj from '@/components'

Vue.use(ELEMENT)
Vue.use(GlobalComponentObj) // 全局自定义组件

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
